#ifndef __GY953_H__
#define __GY953_H__

#include "stdio.h"
#include "stdint.h"
#include "usart.h"

#define HUART huart3
#define RingBufferSize 11
#define TRUE 1
#define FALSE 0

typedef struct RingBufferStruct{
	int in;
	int out;
	char Buffer[RingBufferSize];
}stRingBuf; 
typedef struct Axis{
     float acc_x;
     float acc_y;
     float acc_z;
     float roll;
     float pitch;
     float yaw;
     float mag_x;
     float mag_y;
     float mag_z;
    
}axis;
int IsRingBufFull(stRingBuf *ringBuf);
int IsRingBufEmpty(stRingBuf *ringBuf);
int WriteOneByte(stRingBuf *ringBuf,uint8_t data);
int ReadOneByte(stRingBuf *ringBuf,uint8_t *data);
void Start_GY953(void);
void Analysis_RING(void);
extern uint8_t RxBuffer[11];
extern uint8_t RealRxBuffer[11];
extern uint8_t DMARxBuffer[11];

#endif
